package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 流程审核-历史记录业务对象 process_check_historyinfo
 *
 * @author ruoyi
 * @date 2024-04-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ProcessCheckHistoryinfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 审核id
     */
    @NotNull(message = "审核id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long checkId;

    /**
     * 状态0:待审核1：通过2：驳回
     */
    @NotBlank(message = "状态0:驳回1：通过2：继续审核 不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;

    /**
     * 流程所处阶段0：发起 1：1审核 2：2审
     */
    @NotBlank(message = "流程所处阶段0：发起 1：1审核 2：2审不能为空", groups = { AddGroup.class, EditGroup.class })
    private String processStage;

    /**
     * 审核人id
     */
    @NotBlank(message = "审核人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long subjectOfficer;

    /**
     * 是否为终节点1：是 0：否
     */
    @NotBlank(message = "是否为终节点1：是 0：否不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isFinal;

    /**
     * 审核意见
     */
    @NotBlank(message = "审核意见不能为空", groups = { AddGroup.class, EditGroup.class })
    private String checkOpinion;

    /**
     * 抄送人id列表
     */
    @NotBlank(message = "抄送人id列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<Integer> copyFor;


    private List<Integer> keepCheckId;


}
